package com.masterrabbit.gmh.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.masterrabbit.gmh.domain.Merchants;
import com.masterrabbit.gmh.mapper.MerchantsMapper;
import com.masterrabbit.gmh.service.MerchantsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class MerchantsServiceImpl extends ServiceImpl<MerchantsMapper, Merchants> implements MerchantsService {

    @Autowired
    private MerchantsMapper merchantsMapper;
    @Override
    public List<Merchants> getMerchantsByMerchantId(Integer merchantId) {
        return merchantsMapper.getMerchantsByUserId(merchantId);
    }

    @Override
    public List<String> selectByProductId(Integer productId) {
        return merchantsMapper.selectByProductId(productId);
    }
}
